package com.tiantian.controller;

import com.tiantian.starter.starter.YourStarterService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/hello")
public class HelloController {

    private final YourStarterService starterService;

    public HelloController(YourStarterService starterService) {
        this.starterService = starterService;
    }

    @GetMapping("/hello/{content}")
    public String hello(@PathVariable("content") String content) {
        return starterService.wrap(content);
    }
}
